package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    /**
     * 添加评论
     * @param comment
     */
    TravelComment addComment(TravelComment comment);

    /**
     * 查询评论
     * @param qo 分页及查询条件
     * @return
     */
    Page<TravelComment> query(TravelCommentQuery qo);

    /**
     * 根据用户id查询游记评论
     * @param uid
     * @return
     */
    List<TravelComment> getCommentByUserId(Long uid);
}
